<template>
  <div class="order">
    <NavBar title="我的活动"></NavBar>
    <div class="order-item" v-for="item in 6" :key="item">
      <div class="item-header">
        <div class="item-date">2020-10-10</div>
        <div class="item-total">已完成数量</div>
      </div>
      <div class="item-main">
        <div class="item-pic">
          <img src="http://qhps40fk6.hn-bkt.clouddn.com/product2.png" alt="" />
        </div>
        <div class="item-info">
          <div class="item-name">推荐好友购买6台得免单</div>
          <div class="item-code">推荐码:AB35RFGfg</div>
        </div>
        <div class="item-total">1</div>
      </div>
      <div class="item-operate">
        <div class="item-btn">复制推荐吗</div>
        <div class="item-btn">申请免单</div>
      </div>
    </div>
  </div>
</template>

<script>
import NavBar from "../components/NavBar";
export default {
  components: {
    NavBar,
  },
};
</script>

<style lang="scss" scoped>
.order {
  background-color: #f0f0f0;
  padding-top: 1.1728rem;
  padding-bottom: 1.4928rem;
  .order-item {
    margin-bottom: 0.08rem;
    background-color: #fff;
    .item-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-size: 0.426667rem;
      color: #757777;
      padding: 0.426667rem 0.64rem;
      padding-right: 0.44rem;
      border-bottom: 1px solid rgb(247, 244, 244);
    }
    .item-total {
      width: 1.666667rem;
      text-align: center;
      font-size: 0.426667rem;
    }
    .item-main {
      padding: 0.4rem;
      display: flex;
      align-items: center;
      justify-content: center;
      border-bottom: 1px solid rgb(247, 244, 244);
      .item-pic {
        width: 2.506667rem;
        img {
          width: 100%;
        }
      }
      .item-info {
        flex: 1;
        padding-left: 0.266667rem;
        .item-name {
          font-size: 0.4rem;
          color: #757777;
        }
        .item-code {
          font-size: 0.32rem;
          color: #949494;
          padding-top: 0.346667rem;
        }
      }
    }
    .item-operate {
      padding: 0.346667rem 0.613333rem;
      display: flex;
      align-items: center;
      justify-content: flex-end;
      .item-btn {
        background: linear-gradient(0deg, #4d79ef, #6a95f4);
        color: #fff;
        padding: 0.24rem 0.426667rem;
        border-radius: 0.08rem;
        margin-left: 0.266667rem;
      }
    }
  }
}
</style>